from api.dep_api import DepApi
from common.token_util import TokenUtil


class DepartUtil:
    #部门id
    @classmethod
    def get_departid(cls):
        token=TokenUtil.get_token()
        body={"name":"测试01","code":"123"}
        resp=DepApi.add_dep_api(token,body)
        deparrt_id=resp.json().get("data").get("id")
        return deparrt_id

